home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 301-325 / disk_313 / uucp / uucp1.lzh / src / uucico / includes.h < prev    next >
C/C++ Source or Header  |  1989-10-23  |  3KB  |  131 lines

  1. /*
  2.  * @(#)includes.h 1.2 87/08/14 -- Copyright 1987 by John Gilmore
  3.  * Copying governed by GNU Emacs General Public License.
  4.  *
  5.  * Include files for various supported systems:
  6.  * Note that NAMESIZE should be the max length of a file name, including
  7.  * all its directories, drive specifiers, extensions, and the like.
  8.  * E.g. on a Unix with 14-char file names, NAMESIZE is several hundred
  9.  * characters, since the 14-char names can be nested.
  10.  *
  11.  * Ported to Amiga by William Loftus
  12.  * Changes Copyright 1988 by William Loftus.  All rights reserved.
  13.  */
  14.  
  15. #ifdef BSD
  16. /* Unix Berserkeley systems */
  17. #include <stdio.h>
  18. #include <ctype.h>
  19. #include <sys/param.h>
  20. #include <sys/file.h>
  21. #include <sys/time.h>
  22. #include <string.h>
  23.  
  24. extern char *strtok();
  25.  
  26. #define UNIX
  27. #define NAMESIZE    MAXPATHLEN
  28. #endif
  29.  
  30. #ifdef SYSV
  31. /* Unix System V */
  32. #include <stdio.h>
  33. #include <ctype.h>
  34. #include <fcntl.h>
  35. #include <string.h>
  36.  
  37. #define UNIX
  38. #endif
  39.  
  40. #ifdef UNIX
  41. /* Stuff common to all Unix systems */
  42. #define remove    unlink    /* Unix-ism for removing a file */
  43. #define MULTITASK
  44. #define STDIN        0
  45. #define SPOOLDIR    "/usr/spool/uucp"
  46. #define PUBDIR        "/usr/spool/uucppublic"
  47. #define LOGFILE     "LOGFILE"
  48. #define O_BINARY    0    /* No distinction between text and binary */
  49. #endif
  50.  
  51. #ifdef CPM
  52. /* CP/M-80 */
  53. #include <stdio.h>
  54. #include <ctype.h>
  55. #include <fcntl.h>
  56.  
  57. #define NAMESIZE    50        /* No directories... */
  58. #endif
  59.  
  60. #ifdef MSDOS
  61. /* Microsoft DOS */
  62. #include <stdio.h>
  63. #include <ctype.h>
  64. #include <fcntl.h>
  65. #include <time.h>
  66. #include <signal.h>
  67. #include <dos.h>
  68. #include <conio.h>
  69. #include <stdlib.h>
  70. #include <process.h>
  71. #include <string.h>
  72. #include <direct.h>
  73. #include <memory.h>
  74.  
  75. /* Turn on support for the interrupt driven comm port routines */
  76. #define COMPORT
  77.  
  78. #ifdef COMPORT
  79. #include "comport.h"
  80. int handler();
  81. #endif
  82.  
  83. #define GET_TIME 0x2c    /* DOS function number for get_time */
  84. #define DOS_INT  0x21    /* DOS interrupt number */
  85.  
  86. typedef struct timetype {
  87.     unsigned hour;
  88.     unsigned minute;
  89.     unsigned sec;
  90.     unsigned hsec;
  91. } TIME, *TIME_PTR;
  92.  
  93.  
  94. /* FIXME, these should all be uppercase. */
  95. #define fnamesize    sizeof("FILENAME")    /* 8 chars */
  96. #define NAMESIZE    128        /* full path size */
  97. #define ufnamesize    5        /* uux id size */
  98. #endif
  99.  
  100. #ifdef ST
  101. /* Atari ST */
  102. #include <stdio.h>
  103. #include <ctype.h>
  104. #include <osbind.h>
  105. #include <signal.h>
  106.  
  107. #define O_RDONLY    0    /* for read only open() */
  108. #define AUX        1    /* rs232 port */
  109. #define CON        2    /* console */
  110. #define NAMESIZE    13    /* filename size */
  111. #define CTRL(X) (X & 037)
  112.  
  113. #endif
  114.  
  115. #ifdef AMIGA
  116. #include <exec/types.h>
  117. #include <fcntl.h>
  118. #include <exec/exec.h>
  119. #include <devices/serial.h>
  120. #include <devices/keymap.h>
  121. #include <devices/timer.h>
  122. #include <libraries/dos.h>
  123. #include <signal.h>
  124. #include <stdio.h>
  125. #include <stdlib.h>
  126. #include <string.h>
  127. #include <ctype.h>
  128. #include <time.h>
  129. #define NAMESIZE 128
  130. #endif
  131.